package com.auxgroup.smarthome.web.filter;

import com.auxgroup.smarthome.filter.CommonPermissionSecurityUserServiceImpl;
import com.auxgroup.smarthome.jwt.JwtConstant;
import org.springframework.stereotype.Service;

import java.util.Arrays;

/**
 * Created by kevinchen on 2017/3/26.
 */
@Service
public class PermissionAnalysisService extends CommonPermissionSecurityUserServiceImpl {

    String[] crossUri =new String[]{};


    @Override
    protected String getJwtSecret() {
        return JwtConstant.JWT_SECRET;
    }

    @Override
    public void addNoAuthUri() {
        noAuthUri = Arrays.asList(crossUri);
    }

    @Override
    public boolean isTimeout() {
        return false;
    }

    @Override
    public boolean allowQueryRequestUri(String uri){
        return true;
    }

}
